<?php
/**
 * All View package tests runner
 *
 * PHP version 5
 *
 * @category   Web
 * @package    App
 * @subpackage Tests
 * @author     Logger Testenborg <logger.testenborg@data2people.com>
 * @copyright  http://data2people.com
 * @license    Apache License 2.0 http://www.apache.org/licenses/LICENSE-2.0.txt
 * @version    SVN: $Id: $
 *
 */

if (!defined('PHPUnit_MAIN_METHOD')) {
    define('PHPUnit_MAIN_METHOD', 'View_AllTests::main');
}

/*
 * Include config for tests
 */
require_once dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'testsConfig.php';

/*
 * Include test suits
 */
require_once dirname(__FILE__).DIRECTORY_SEPARATOR.'SmartyTests.php';

/*
 * All tests runner class
 */
class View_AllTests {
    
    public static function main() {
        PHPUnit_TextUI_TestRunner::run(self::suite());
    }
    
    public static function suite() {
        /*
         * 'View package all tests' - will be a title in the report
         */
        $suite = new PHPUnit_Framework_TestSuite('View package all tests');
        
        /*
         * Include particular test case
         */
        $suite->addTestSuite('SmartyTests');
        
        return $suite;
    }
}

/*
 * Run View package test suit
 */
if (PHPUnit_MAIN_METHOD == 'View_AllTests::main') {
    View_AllTests::main();
}